package net.itren.jetpackdemo.utils

import android.app.Application
import android.widget.Toast
import net.itren.jetpackdemo.MyApplication

object Utils {
    fun getName(): String {
        return "哈哈哈哈"
    }


    fun showToast(resId: Int) {
        Toast.makeText(MyApplication.myApplication, resId, Toast.LENGTH_SHORT).show();
    }

    fun showToast(toastText: String) {
        Toast.makeText(MyApplication.myApplication, toastText, Toast.LENGTH_SHORT).show();
    }
}